﻿<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Jekyll v3.6.0">
<title>导航栏 &middot; BootstrapVue</title>
<!-- Bootstrap 核心CSS -->
<link href="../../../v4/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- 本文档额外专用css -->
<link href="../../../v4/assets/css/docsearch.min.css" rel="stylesheet">
<link href="../../../v4/assets/css/docs.min.css" rel="stylesheet">
<link href="../../style/bv_path.css" rel="stylesheet">

<!-- Favicons图标定义 -->
<link data-n-head="ssr" rel="manifest" href="../../manifest.json">
<link data-n-head="ssr" rel="shortcut icon" href="../../style/icons/icon_64.png">
<link data-n-head="ssr" rel="apple-touch-icon" href="../../style/icons/icon_512.png" sizes="512x512">

<!-- Meta关键字定义 -->
<meta name="description" content="The most popular HTML, CSS, and JS library in the world.">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">

</head>
<body>
<a id="skippy" class="sr-only sr-only-focusable" href="#content">
<div class="container"> <span class="skiplink-text">跳到主体内容</span> </div>
</a>
<header class="navbar navbar-expand navbar-dark flex-column flex-md-row bd-navbar"> <a class="navbar-brand mr-0 mr-md-2" href="../" aria-label="Bootstrap">
  <svg class="d-block" width="36" height="36" viewbox="0 0 612 612" xmlns="http://www.w3.org/2000/svg" focusable="false">
    <title>Bootstrap</title>
    <path fill="currentColor" d="M510 8a94.3 94.3 0 0 1 94 94v408a94.3 94.3 0 0 1-94 94H102a94.3 94.3 0 0 1-94-94V102a94.3 94.3 0 0 1 94-94h408m0-8H102C45.9 0 0 45.9 0 102v408c0 56.1 45.9 102 102 102h408c56.1 0 102-45.9 102-102V102C612 45.9 566.1 0 510 0z"/>
    <path fill="currentColor" d="M196.77 471.5V154.43h124.15c54.27 0 91 31.64 91 79.1 0 33-24.17 63.72-54.71 69.21v1.76c43.07 5.49 70.75 35.82 70.75 78 0 55.81-40 89-107.45 89zm39.55-180.4h63.28c46.8 0 72.29-18.68 72.29-53 0-31.42-21.53-48.78-60-48.78h-75.57zm78.22 145.46c47.68 0 72.73-19.34 72.73-56s-25.93-55.37-76.46-55.37h-74.49v111.4z"/>
  </svg>
  </a>
  <div class="navbar-nav-scroll">
    <ul class="navbar-nav bd-navbar-nav flex-row">
      <li class="nav-item"><a class="nav-link " href="../">首页</a></li>
      <li class="nav-item"><a class="nav-link" href="index.html">中文手册</a></li>
      <li class="nav-item"><a class="nav-link active" href="../components">组件</a></li>
      <li class="nav-item"><a class="nav-link " href="../directives">指令</a></li>
      <li class="nav-item"><a class="nav-link " href="../reference">参考</a></li>
      <li class="nav-item"><a class="nav-link " href="https://bootstrap-vue.org/play" target="_blank">体验</a></li>
      <li class="nav-item"><a class="nav-link " href="http://code.z01.com/v4"><i class="zi zi_bold" zico="粗"></i> Boostrap</a></li>
      <li class="nav-item"><a class="nav-link" href="http://ico.z01.com" target="_blank" rel="noopener">zico图标系统</a></li>
      <li class="nav-item"><a class="nav-link" href="http://www.z01.com" target="_blank" rel="noopener">Zoomla!逐浪CMS</a></li>
    </ul>
  </div>
  <ul class="navbar-nav flex-row ml-md-auto d-none d-md-flex">
    <li class="nav-item dropdown"> <a class="nav-item nav-link dropdown-toggle mr-md-2" href="#" id="bd-versions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="alse"> v2.12.0 </a>
      <div class="dropdown-menu dropdown-menu-right" aria-labelledby="bd-versions"> 
        <a class="dropdown-item active" href="../../../bootstrap-vue/docs/4.0/">Latest (4.3.x)</a>
        <a class="dropdown-item" href="/Boot/">v3.3.7</a>
        <a class="dropdown-item" href="/Sass/">Sass语言</a>
        <a class="dropdown-item" href="/Emmet/">Emmet语法</a>
        <a class="dropdown-item" href="//www.z01.com/tool/" target="_blank">IIS站长工具</a>
        <a class="dropdown-item" href="//ad.z01.com/" target="_blank">广告源码</a>
        <a class="dropdown-item" href="//v.z01.com/mb/" target="_blank">免费模板</a>
        <a class="dropdown-item" href="//v.z01.com/" target="_blank">H5移动创作</a>
        <a class="dropdown-item" href="//www.z01.com/help/web/3234.shtml" target="_blank">Flexbox布局</a>
		<a class="dropdown-item" href="/boot/font.html" target="_blank">Font Awesome</a>
</div>
    </li>
    <li class="nav-item"> <a class="nav-link p-2" href="//zoomla.github.io/bootstrap4-zhcn-documentation" target="_blank" rel="noopener" aria-label="GitHub">
      <svg class="navbar-nav-svg" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 512 499.36" focusable="false">
        <title>GitHub</title>
        <path d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z" fill="currentColor" fill-rule="evenodd"/>
      </svg>
      </a> </li>
    <li class="nav-item"> <a class="nav-link p-2" href="http://www.z01.com/blog/ren/3214.shtml" target="_blank" rel="noopener" aria-label="Slack">译者说</a></li>
  </ul>
  <a class="btn btn-bd-yellow d-none d-lg-inline-block mb-3 mb-md-0 ml-md-3" href="download.html">下载 Bootstrap</a> </header>

<div class="container-fluid">
  <div class="row flex-xl-nowrap">
    <div class="col-12 col-md-3 col-xl-2 bd-sidebar">
      <form class="bd-search d-flex align-items-center">
        <input type="search" class="form-control" id="search-input" placeholder="Search..." aria-label="Search for..." autocomplete="off">
        <button class="btn btn-link bd-search-docs-toggle d-md-none p-0 ml-3" type="button" data-toggle="collapse" data-target="#bd-docs-nav" aria-controls="bd-docs-nav" aria-expanded="false" aria-label="Toggle docs navigation">
        <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 30 30" width="30" height="30" focusable="false">
          <title>Menu</title>
          <path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22"/>
        </svg>
        </button>
      </form>


<nav class="collapse bd-links" id="bd-docs-nav">
<div class=""><a href="../" class="bd-toc-link">首页</a></div>
<div class="bd-toc-item nuxt-link-exact-active "><a href="../../../bootstrap-vue/docs/" class="bd-toc-link  "> 起步 </a>
<ul class="nav bd-sidenav">
</ul>
</div>
<div class="bd-toc-item active"><a href="../../../bootstrap-vue/docs/components/" class="bd-toc-link nuxt-link-exact-active"> 组件 </a>
<ul class="nav bd-sidenav">
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/index.html" class="nav-link"> 组件目录 </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/alert.html" class="nav-link"> 警告提示框(Alert) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/badge.html" class="nav-link"> 徽章(Badge) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/badge.html" class="nav-link"> 面包屑导航(Breadcrumb) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/button.html" class="nav-link"> 按钮(Button) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/button-group.html" class="nav-link"> 按钮组(Button Group) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/button-toolbar.html" class="nav-link"> 按钮Toolbar(Button Toolbar) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/calendar.html" class="nav-link"> 日历组件(Calendar) <small class="badge text-uppercase badge-success">New</small> </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/card.html" class="nav-link"> 卡片(Card) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/carousel.html" class="nav-link"> 轮播效果(Carousel) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/collapse.html" class="nav-link"> 折叠面板(Collapse) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/dropdown.html" class="nav-link"> 下拉菜单(Dropdown) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/embed.html" class="nav-link"> 嵌入(Embed) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form.html" class="nav-link"> 表单(Form) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-checkbox.html" class="nav-link"> 表单复选框(Form Checkbox) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-datepicker.html" class="nav-link"> 表单时间选择器(Form Datepicker) <small class="badge text-uppercase badge-success">New</small> </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-file.html" class="nav-link"> 文件选择(Form File) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-group.html" class="nav-link"> 表单组合(Form Group) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-input.html" class="nav-link"> 表单输入框(Form Input) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-radio.html" class="nav-link"> 单选择表单Form Radio </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-select.html" class="nav-link"> 下拉式表单(Form Select) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-spinbutton.html" class="nav-link"> 按钮式表单(Form Spinbuttno) <small class="badge text-uppercase badge-success">New</small> </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-tags.html" class="nav-link"> Tags表单选择器(Form Tags) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-textarea.html" class="nav-link"> 文本框(Form Textarea) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-timepicker.html" class="nav-link"> 表单内时间控件(Form Timepicker) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/image.html" class="nav-link"> 图片(Image) </a></li>

<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/input-group.html" class="nav-link"> 输入框(Input Group) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/jumbotron.html" class="nav-link"> Hero大块屏(Jumbotron) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/layout.html" class="nav-link"> 布局与网络Layout and Grid System </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/link.html" class="nav-link"> 链接(Link)</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/list-group.html" class="nav-link"> 列表组(List group) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/media.html" class="nav-link"> 媒体(Media) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/modal.html" class="nav-link"> 弹出模态框(Modal) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/nav.html" class="nav-link"> 导航(Nav) </a></li>
<li class="nav-item active"><a href="../../../bootstrap-vue/docs/components/navbar.html" class="nav-link"> 导航栏(Navbar) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/pagination.html" class="nav-link"> 分页(Pagination) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/pagination-nav.html" class="nav-link"> 分页导航(Pagination Nav) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/popover.html" class="nav-link"> 指示备注(Popover) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/progress.html" class="nav-link"> 进度指示器(Progress) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/spinner.html" class="nav-link"> 旋转指示器(Spinner) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/table.html" class="nav-link"> 表格(Table) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/tabs.html" class="nav-link"> 选项卡(Tabs) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/time.html" class="nav-link"> 时间组件(Time) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/toast.html" class="nav-link"> 冒泡推送(Toasts) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/tooltip.html" class="nav-link"> tip提示组件(Tooltip) </a></li>
</ul>
</div>
<div class="bd-toc-item"><a href="../../../bootstrap-vue/docs/directives/" class="bd-toc-link"> 指令 </a>
<ul class="nav bd-sidenav">
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/index.html" class="nav-link"> 指令目录 </a></li>
<li class="nav-item active"><a href="../../../bootstrap-vue/docs/directives/hover.html" class="nav-link"> Hover 指令<small class="badge text-uppercase badge-success">New</small> </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/popover.html" class="nav-link"> Popover 提示备注</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/scrollspy.html" class="nav-link"> Scrollspy 滚动监听</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/tooltip.html" class="nav-link"> Tooltip 提示指令</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/visible.html" class="nav-link"> Visible 可见性操作<small class="badge text-uppercase badge-success">New</small> </a></li>
</ul>
</div>
<div class="bd-toc-item"><a href="../../../bootstrap-vue/docs/icons.html" class="bd-toc-link"> Icons图标</a>
<ul class="nav bd-sidenav">
</ul>
</div>
  
<div class="bd-toc-item"><a class="bd-toc-link" href="../../../bootstrap-vue/docs/reference">参考</a>
<ul class="nav bd-sidenav">
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference" class="nav-link.html"> 参考目录 </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/accessibility.html" class="nav-link">友好访问</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/color-variants.html" class="nav-link">Color颜色变量 </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/images.html" class="nav-link"> 组件图像img的src路径解析</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/router-links.html" class="nav-link"> Router路由支持 </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/size-props.html" class="nav-link">大小规格</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/spacing-classes.html" class="nav-link">间距处理</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/starter-templates.html" class="nav-link">开始模板</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/theming.html" class="nav-link">主题色彩</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/utility-classes.html" class="nav-link">通用Class类</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/validation.html" class="nav-link">Form表单验证</a></li>
</ul>
</div>
<div class=""><a href="https://bootstrap-vue.org/play" class="bd-toc-link" target="_blank">在线模拟器</a></div>
</nav>
</div>

<div class="d-none d-xl-block col-xl-2 bd-toc">
<ul class="section-nav">
<li class="nav-item toc-entry mb-2"><a target="_self" href="#navbar" class="nav-link font-weight-bold"><span>导航栏(Navbar)</span></a></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#color-schemes" class="nav-link"><span>颜色配置</span></a> <!----></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#placement" class="nav-link"><span>布局</span></a> <!----></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#supported-content" class="nav-link"><span>支持的内容</span></a>
<ul class="nav flex-column">
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#b-navbar-brand" class="nav-link"><span>&lt;b-navbar-brand&gt;</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#b-navbar-nav" class="nav-link"><span>&lt;b-navbar-nav&gt;</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#b-nav-item" class="nav-link"><span>&lt;b-nav-item&gt;</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#b-nav-text" class="nav-link"><span>&lt;b-nav-text&gt;</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#b-nav-item-dropdown" class="nav-link"><span>&lt;b-nav-item-dropdown&gt;</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#b-nav-form" class="nav-link"><span>&lt;b-nav-form&gt;</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#b-navbar-toggle-and-b-collapse-is-nav" class="nav-link"><span>&lt;b-navbar-toggle&gt; and &lt;b-collapse is-nav&gt;</span></a></li>
</ul>
</li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#printing" class="nav-link"><span>打印</span></a> <!----></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#see-also" class="nav-link"><span>另请参阅</span></a> <!----></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#component-reference" class="nav-link"><span>组件引用</span></a>
<ul class="nav flex-column">
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#comp-ref-b-navbar" class="nav-link"><span>&lt;b-navbar&gt;</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#comp-ref-b-navbar-nav" class="nav-link"><span>&lt;b-navbar-nav&gt;</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#comp-ref-b-navbar-brand" class="nav-link"><span>&lt;b-navbar-brand&gt;</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#comp-ref-b-navbar-toggle" class="nav-link"><span>&lt;b-navbar-toggle&gt;</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#importing-individual-components" class="nav-link"><span>导入单个组件</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#importing-as-a-plugin" class="nav-link"><span>作为Vue.js插件导入</span></a></li>
</ul>
</li>
</ul>
</div>

<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">

<nav data-v-aafc4aea="" aria-label="Breadcrumbs" class="float-left mt-2 mb-0 mb-lg-2">
<ol data-v-aafc4aea="" class="breadcrumb d-inline-flex bg-transparent px-2 py-1 my-0">
<li data-v-aafc4aea="" class="breadcrumb-item"><a data-v-aafc4aea="" href="../../" class="nuxt-link-active" target="_self">首页</a></li>
<li data-v-aafc4aea="" class="breadcrumb-item"><a data-v-aafc4aea="" href="../../../bootstrap-vue/docs" class="nuxt-link-active" target="_self">中文手册</a></li>
<li data-v-aafc4aea="" class="breadcrumb-item"><a data-v-aafc4aea="" href="../../../bootstrap-vue/docs/components/" class="nuxt-link-active" target="_self">组件</a></li>
<li data-v-aafc4aea="" class="breadcrumb-item active"><span data-v-aafc4aea="" aria-current="location">导航栏</span></li>
</ol>
</nav>
<div class="clearfix d-block"></div>
  <h1 class="bd-title" id="content">导航栏(Navbar)</h1>
<p class="bd-lead">
  组件<code translate="no" class="notranslate text-nowrap">&lt;b-navbar&gt;</code>是一个包装器，
  它将品牌、导航和其他元素定位到一个简洁的标题中。它很容易扩展，而且由于<code translate="no" class="notranslate text-nowrap">&lt;b-collapse&gt;</code>组件，它可以很容易地集成响应行为。
</p>
  <script type="text/javascript" src="../../../v4/assets/js/pupCMS.js"></script>





<nav class="bd-quick-links mb-3 d-xl-none" data-v-811345e6="">
<header data-v-811345e6="">
<button data-v-811345e6="" type="button" class="btn font-weight-bold btn-outline-secondary btn-sm btn-block collapsed" aria-controls="bd-quick-links-collapse" aria-expanded="false"><span data-v-811345e6="">Show</span> page table of contents </button>
</header>
<ul data-v-811345e6="" id="bd-quick-links-collapse" class="collapse" style="display: none;">
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#color-schemes" class=""><span data-v-811345e6="">Color schemes</span></a> </li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#placement" class=""><span data-v-811345e6="">Placement</span></a> </li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#supported-content" class=""><span data-v-811345e6="">Supported content</span></a>
<ul data-v-811345e6="">
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#b-navbar-brand" class=""><span data-v-811345e6="">&lt;b-navbar-brand&gt;</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#b-navbar-nav" class=""><span data-v-811345e6="">&lt;b-navbar-nav&gt;</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#b-nav-item" class=""><span data-v-811345e6="">&lt;b-nav-item&gt;</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#b-nav-text" class=""><span data-v-811345e6="">&lt;b-nav-text&gt;</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#b-nav-item-dropdown" class=""><span data-v-811345e6="">&lt;b-nav-item-dropdown&gt;</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#b-nav-form" class=""><span data-v-811345e6="">&lt;b-nav-form&gt;</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#b-navbar-toggle-and-b-collapse-is-nav" class=""><span data-v-811345e6="">&lt;b-navbar-toggle&gt; and &lt;b-collapse is-nav&gt;</span></a></li>
</ul>
</li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#printing" class=""><span data-v-811345e6="">Printing</span></a> </li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#see-also" class=""><span data-v-811345e6="">See also</span></a> </li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#component-reference" class=""><span data-v-811345e6="">Component reference</span></a>
<ul data-v-811345e6="">
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#comp-ref-b-navbar" class=""><span data-v-811345e6="">&lt;b-navbar&gt;</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#comp-ref-b-navbar-nav" class=""><span data-v-811345e6="">&lt;b-navbar-nav&gt;</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#comp-ref-b-navbar-brand" class=""><span data-v-811345e6="">&lt;b-navbar-brand&gt;</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#comp-ref-b-navbar-toggle" class=""><span data-v-811345e6="">&lt;b-navbar-toggle&gt;</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#importing-individual-components" class=""><span data-v-811345e6="">Importing individual components</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#importing-as-a-plugin" class=""><span data-v-811345e6="">Importing as a Vue.js plugin</span></a></li>
</ul>
</li>
</ul>
</nav>
<p><strong>例子:</strong></p>
<div translate="translate" class="bd-example vue-example vue-example-b-navbar notranslate">
<div>
<nav class="navbar navbar-dark bg-info navbar-expand-lg"><a target="_self" href="#" class="navbar-brand">NavBar</a>
<button type="button" aria-label="Toggle navigation" aria-controls="nav-collapse" aria-expanded="false" class="navbar-toggler"><span class="navbar-toggler-icon"></span></button>
<div id="nav-collapse" class="navbar-collapse collapse" style="display: none;">
<ul class="navbar-nav">
<li class="nav-item"><a target="_self" href="#" class="nav-link">Link</a></li>
<li class="nav-item"><a target="_self" tabindex="-1" aria-disabled="true" href="#" class="nav-link disabled">Disabled</a></li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="form-inline">
<form class="form-inline">
<input type="text" placeholder="Search" class="mr-sm-2 form-control form-control-sm" id="__BVID__786">
<button type="submit" class="btn my-2 my-sm-0 btn-secondary btn-sm">Search</button>
</form>
</li>
<li class="nav-item b-nav-dropdown dropdown" id="__BVID__787"><a aria-haspopup="true" aria-expanded="false" target="_self" href="#" class="nav-link dropdown-toggle" id="__BVID__787__BV_button_"><span>Lang</span></a>
<ul tabindex="-1" class="dropdown-menu dropdown-menu-right" aria-labelledby="__BVID__787__BV_button_">
<li role="presentation"><a role="menuitem" target="_self" href="#" class="dropdown-item">EN</a></li>
<li role="presentation"><a role="menuitem" target="_self" href="#" class="dropdown-item">ES</a></li>
<li role="presentation"><a role="menuitem" target="_self" href="#" class="dropdown-item">RU</a></li>
<li role="presentation"><a role="menuitem" target="_self" href="#" class="dropdown-item">FA</a></li>
</ul>
</li>
<li class="nav-item b-nav-dropdown dropdown" id="__BVID__797"><a aria-haspopup="true" aria-expanded="false" target="_self" href="#" class="nav-link dropdown-toggle" id="__BVID__797__BV_button_"><em>User</em></a>
<ul tabindex="-1" class="dropdown-menu dropdown-menu-right" aria-labelledby="__BVID__797__BV_button_">
<li role="presentation"><a role="menuitem" target="_self" href="#" class="dropdown-item">Profile</a></li>
<li role="presentation"><a role="menuitem" target="_self" href="#" class="dropdown-item">Sign Out</a></li>
</ul>
</li>
</ul>
</div>
</nav>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar</span> <span class="hljs-attr">toggleable</span>=<span class="hljs-string">"lg"</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"dark"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"info"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar-brand</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>NavBar<span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar-brand</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar-toggle</span> <span class="hljs-attr">target</span>=<span class="hljs-string">"nav-collapse"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar-toggle</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">b-collapse</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"nav-collapse"</span> <span class="hljs-attr">is-nav</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar-nav</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-nav-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>Link<span class="hljs-tag">&lt;/<span class="hljs-name">b-nav-item</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-nav-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span> <span class="hljs-attr">disabled</span>&gt;</span>Disabled<span class="hljs-tag">&lt;/<span class="hljs-name">b-nav-item</span>&gt;</span>
      <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar-nav</span>&gt;</span>

      <span class="hljs-comment">&lt;!-- Right aligned nav items --&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar-nav</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"ml-auto"</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-nav-form</span>&gt;</span>
          <span class="hljs-tag">&lt;<span class="hljs-name">b-form-input</span> <span class="hljs-attr">size</span>=<span class="hljs-string">"sm"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mr-sm-2"</span> <span class="hljs-attr">placeholder</span>=<span class="hljs-string">"Search"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-input</span>&gt;</span>
          <span class="hljs-tag">&lt;<span class="hljs-name">b-button</span> <span class="hljs-attr">size</span>=<span class="hljs-string">"sm"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"my-2 my-sm-0"</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"submit"</span>&gt;</span>Search<span class="hljs-tag">&lt;/<span class="hljs-name">b-button</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">b-nav-form</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-name">b-nav-item-dropdown</span> <span class="hljs-attr">text</span>=<span class="hljs-string">"Lang"</span> <span class="hljs-attr">right</span>&gt;</span>
          <span class="hljs-tag">&lt;<span class="hljs-name">b-dropdown-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>EN<span class="hljs-tag">&lt;/<span class="hljs-name">b-dropdown-item</span>&gt;</span>
          <span class="hljs-tag">&lt;<span class="hljs-name">b-dropdown-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>ES<span class="hljs-tag">&lt;/<span class="hljs-name">b-dropdown-item</span>&gt;</span>
          <span class="hljs-tag">&lt;<span class="hljs-name">b-dropdown-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>RU<span class="hljs-tag">&lt;/<span class="hljs-name">b-dropdown-item</span>&gt;</span>
          <span class="hljs-tag">&lt;<span class="hljs-name">b-dropdown-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>FA<span class="hljs-tag">&lt;/<span class="hljs-name">b-dropdown-item</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">b-nav-item-dropdown</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-name">b-nav-item-dropdown</span> <span class="hljs-attr">right</span>&gt;</span>
          <span class="hljs-comment">&lt;!-- Using 'button-content' slot --&gt;</span>
          <span class="hljs-tag">&lt;<span class="hljs-name">template</span> <span class="hljs-attr">v-slot:button-content</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">em</span>&gt;</span>User<span class="hljs-tag">&lt;/<span class="hljs-name">em</span>&gt;</span>
          <span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>
          <span class="hljs-tag">&lt;<span class="hljs-name">b-dropdown-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>Profile<span class="hljs-tag">&lt;/<span class="hljs-name">b-dropdown-item</span>&gt;</span>
          <span class="hljs-tag">&lt;<span class="hljs-name">b-dropdown-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>Sign Out<span class="hljs-tag">&lt;/<span class="hljs-name">b-dropdown-item</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">b-nav-item-dropdown</span>&gt;</span>
      <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar-nav</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-collapse</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></pre></figure>
<h2 id="color-schemes" class="bv-no-focus-ring"><span class="bd-content-title">颜色配置<a class="anchorjs-link" href="#color-schemes" aria-labelledby="color-schemes"></a></span></h2>
<p>
  <code translate="no" class="notranslate text-nowrap">&lt;b-navbar&gt;</code>支持标准引导v4可用的背景色变量。
  将<code translate="no" class="notranslate text-nowrap">variant</code>属性设置为以下值之一以更改背景颜色：
  <code translate="no" class="notranslate text-nowrap">primary</code>, 
  <code translate="no" class="notranslate text-nowrap">success</code>,
   <code translate="no" class="notranslate text-nowrap">info</code>, 
   <code translate="no" class="notranslate text-nowrap">warning</code>, 
   <code translate="no" class="notranslate text-nowrap">danger</code>,
    <code translate="no" class="notranslate text-nowrap">dark</code>,或
     <code translate="no" class="notranslate text-nowrap">light</code>。
</p>
<p>
  控制文本颜色，方法是将<code translate="no" class="notranslate text-nowrap">type</code> 属性设置为<code translate="no" class="notranslate text-nowrap">light</code>以用于浅色背景颜色变体，
  或将<code translate="no" class="notranslate text-nowrap">dark</code>设置为深色背景颜色变体。
</p>
<h2 id="placement" class="bv-no-focus-ring"><span class="bd-content-title">布局<a class="anchorjs-link" href="#placement" aria-labelledby="placement"></a></span></h2>
<p>通过设置两个属性之一来控制导航栏的位置：</p>
<div class="table-responsive-sm">
<table class="b-table table table-bordered table-striped bv-docs-table">
<thead class="thead-default">
<tr>
<th>属性</th>
<th>类型</th>
<th>默认值</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td><code translate="no" class="notranslate text-nowrap">fixed</code></td>
<td>String</td>
<td><code translate="no" class="notranslate text-nowrap">null</code></td>
<td>
  设置为<code translate="no" class="notranslate text-nowrap">top</code>表示固定到视口的顶部，或设置为<code translate="no" class="notranslate text-nowrap">bottom</code>表示固定到视口的
  <code translate="no" class="notranslate text-nowrap">底部</code>。
</td>
</tr>
<tr>
<td><code translate="no" class="notranslate text-nowrap">sticky</code></td>
<td>Boolean</td>
<td><code translate="no" class="notranslate text-nowrap">false</code></td>
<td>
  设置为<code translate="no" class="notranslate text-nowrap">true</code>可使导航栏在滚动时粘在视口（或具有<code translate="no" class="notranslate text-nowrap">position: relative</code>的父容器）的顶部。
</td>
</tr>
</tbody>
</table>
</div>
<p><strong>注意事项:</strong></p>
<ul>
<li>
  固定位置使用CSS <code translate="no" class="notranslate text-nowrap">position: fixed</code>。您可能需要调整文档的顶部/底部填充或边距。
</li>
<li>
  CSS位置：不是每个浏览器都完全支持sticky（用于 <code translate="no" class="notranslate text-nowrap">sticky</code>）。
  对于不支持<code translate="no" class="notranslate text-nowrap">position: sticky</code>的浏览器，
  它将以本机方式回退到<code translate="no" class="notranslate text-nowrap">position: relative</code>。
</li>
</ul>
<h2 id="supported-content" class="bv-no-focus-ring"><span class="bd-content-title">支持的内容<a class="anchorjs-link" href="#supported-content" aria-labelledby="supported-content"></a></span></h2>
<p>导航条带有对少数子组件的内置支持。根据需要从以下选项中选择：</p>
<ul>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-navbar-brand&gt;</code> 表示您的公司、产品或项目名称。</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-navbar-toggle&gt;</code>用于<code translate="no" class="notranslate text-nowrap">&lt;b-collapse is-nav&gt;</code>组件.</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-collapse is-nav&gt;</code> 用于按父断点分组和隐藏导航栏内容。</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-navbar-nav&gt;</code> 用于全高和轻量级导航（包括支持下拉菜单）。
  支持<code translate="no" class="notranslate text-nowrap">&lt;b-navbar-nav&gt;</code> 中的以下子组件：:
<ul>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-nav-item&gt;</code>对于链接（和路由器链接）操作项</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-nav-item-dropdown&gt;</code> 导航下拉菜单</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-nav-text&gt;</code> 用于添加垂直居中的文本字符串。</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-nav-form&gt;</code>用于任何窗体控件和操作。</li>
</ul>
</li>
</ul>
<h3 id="b-navbar-brand" class="bv-no-focus-ring"><span class="bd-content-title"><code translate="no" class="notranslate text-nowrap">&lt;b-navbar-brand&gt;</code><a class="anchorjs-link" href="#b-navbar-brand" aria-labelledby="b-navbar-brand"></a></span></h3>
<p>
  <code translate="no" class="notranslate text-nowrap">&lt;b-navbar-brand&gt;</code>如果提供了ref，则生成一个<code translate="no" class="notranslate text-nowrap">href</code>；
  如果提供了<code translate="no" class="notranslate text-nowrap">to</code>，则生成一个<code translate="no" class="notranslate text-nowrap">&lt;router-link&gt;</code>。
  如果两者都没有给定，它将呈现为<code translate="no" class="notranslate text-nowrap">&lt;div&gt;</code>标记。通过将<code translate="no" class="notranslate text-nowrap">tag</code>属性设置为要呈现的元素，可以覆盖标记类型：
</p>
<div translate="translate" class="bd-example vue-example vue-example-b-navbar-brand-link notranslate">
<div>
<nav class="navbar navbar-light bg-faded navbar-expand"><a target="_self" href="#" class="navbar-brand">BootstrapVue</a></nav>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-comment">&lt;!-- As a link --&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"faded"</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"light"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar-brand</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>BootstrapVue<span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar-brand</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></pre></figure>
<div translate="translate" class="bd-example vue-example vue-example-b-navbar-brand-heading notranslate">
<div>
<nav class="navbar navbar-light bg-faded navbar-expand">
<h1 class="navbar-brand mb-0">BootstrapVue</h1>
</nav>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-comment">&lt;!-- As a heading --&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"faded"</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"light"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar-brand</span> <span class="hljs-attr">tag</span>=<span class="hljs-string">"h1"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-0"</span>&gt;</span>BootstrapVue<span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar-brand</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></pre></figure>
<p>
  向<code translate="no" class="notranslate text-nowrap">&lt;b-navbar-brand&gt;</code>添加图像可能始终需要自定义样式或实用程序来正确调整大小。以下是一些示例：
</p>
<div translate="translate" class="bd-example vue-example vue-example-b-navbar-brand-image notranslate">
<div>
<nav class="navbar navbar-light bg-faded navbar-expand"><a target="_self" href="#" class="navbar-brand"><img src="https://placekitten.com/g/30/30" alt="Kitten"></a></nav>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-comment">&lt;!-- Just an image --&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"faded"</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"light"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar-brand</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://placekitten.com/g/30/30"</span> <span class="hljs-attr">alt</span>=<span class="hljs-string">"Kitten"</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar-brand</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></pre></figure>
<div translate="translate" class="bd-example vue-example vue-example-b-navbar-brand-image-and-text notranslate">
<div>
<nav class="navbar navbar-light bg-faded navbar-expand"><a target="_self" href="#" class="navbar-brand"><img src="https://placekitten.com/g/30/30" alt="Kitten" class="d-inline-block align-top"> BootstrapVue </a></nav>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-comment">&lt;!-- Image and text --&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"faded"</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"light"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar-brand</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://placekitten.com/g/30/30"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"d-inline-block align-top"</span> <span class="hljs-attr">alt</span>=<span class="hljs-string">"Kitten"</span>&gt;</span>
      BootstrapVue
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar-brand</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></pre></figure>
<h3 id="b-navbar-nav" class="bv-no-focus-ring"><span class="bd-content-title"><code translate="no" class="notranslate text-nowrap">&lt;b-navbar-nav&gt;</code><a class="anchorjs-link" href="#b-navbar-nav" aria-labelledby="b-navbar-nav"></a></span></h3>
<p>
  导航栏导航链接建立在<code translate="no" class="notranslate text-nowrap">&lt;b-navbar-nav&gt;</code>父组件上，
  需要使用<code translate="no" class="notranslate text-nowrap">&lt;b-collapse is-nav&gt;</code>和
  <code translate="no" class="notranslate text-nowrap">&lt;b-nav-toggle&gt;</code>切换器进行适当的响应样式设置。导航栏中的导航也将增长，以占用尽可能多的水平空间，以保持导航栏内容的安全对齐。
</p>
<p><code translate="no" class="notranslate text-nowrap">&lt;b-navbar-nav&gt;</code> 支持以下子组件：</p>
<ul>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-nav-item&gt;</code> 对于链接（和路由器链接）操作项</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-nav-text&gt;</code> 用于添加垂直居中的文本字符串。</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-nav-item-dropdown&gt;</code> 用于导航栏下拉菜单</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-nav-form&gt;</code> 用于向导航栏添加简单表单。</li>
</ul>
<h3 id="b-nav-item" class="bv-no-focus-ring"><span class="bd-content-title"><code translate="no" class="notranslate text-nowrap">&lt;b-nav-item&gt;</code><a class="anchorjs-link" href="#b-nav-item" aria-labelledby="b-nav-item"></a></span></h3>
<p>
  <code translate="no" class="notranslate text-nowrap">&lt;b-nav-item&gt;</code>是主链路（和<code translate="no" class="notranslate text-nowrap">&lt;router-link&gt;</code>）组件。
  提供一个<code translate="no" class="notranslate text-nowrap">to</code>属性值将生成一个<code translate="no" class="notranslate text-nowrap">&lt;router-link&gt;</code>，
  而提供一个<code translate="no" class="notranslate text-nowrap">href</code>属性值将生成一个标准链接。
</p>
<p>
  设置<code translate="no" class="notranslate text-nowrap">&lt;b-nav-item&gt;</code> <code translate="no" class="notranslate text-nowrap">active</code>
  属性将突出显示该项目作为active页面，通过将属性<code translate="no" class="notranslate text-nowrap">disabled</code>设置为true禁用
  <code translate="no" class="notranslate text-nowrap">&lt;b-nav-item&gt;</code>。
</p>
<p>
  通过为 <code translate="no" class="notranslate text-nowrap">&lt;b-nav-item&gt;</code>上的<code translate="no" class="notranslate text-nowrap">@click</code>事件指定处理程序来处理click事件。
</p>
<h3 id="b-nav-text" class="bv-no-focus-ring"><span class="bd-content-title"><code translate="no" class="notranslate text-nowrap">&lt;b-nav-text&gt;</code><a class="anchorjs-link" href="#b-nav-text" aria-labelledby="b-nav-text"></a></span></h3>
<p>
  导航栏可以在<code translate="no" class="notranslate text-nowrap">&lt;b-nav-text&gt;</code>的帮助下包含文本位。此组件调整文本字符串的垂直对齐方式和水平间距。
</p>
<div translate="translate" class="bd-example vue-example vue-example-b-navbar-text notranslate">
<div>
<nav class="navbar navbar-light bg-light navbar-expand-sm">
<button type="button" aria-label="Toggle navigation" aria-controls="nav-text-collapse" aria-expanded="false" class="navbar-toggler"><span class="navbar-toggler-icon"></span></button>
<div class="navbar-brand">BootstrapVue</div>
<div id="nav-text-collapse" class="navbar-collapse collapse" style="display: none;">
<ul class="navbar-nav">
<li class="navbar-text">Navbar text</li>
</ul>
</div>
</nav>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar</span> <span class="hljs-attr">toggleable</span>=<span class="hljs-string">"sm"</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"light"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"light"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar-toggle</span> <span class="hljs-attr">target</span>=<span class="hljs-string">"nav-text-collapse"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar-toggle</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar-brand</span>&gt;</span>BootstrapVue<span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar-brand</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">b-collapse</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"nav-text-collapse"</span> <span class="hljs-attr">is-nav</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar-nav</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-nav-text</span>&gt;</span>Navbar text<span class="hljs-tag">&lt;/<span class="hljs-name">b-nav-text</span>&gt;</span>
      <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar-nav</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-collapse</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></pre></figure>
<h3 id="b-nav-item-dropdown" class="bv-no-focus-ring"><span class="bd-content-title"><code translate="no" class="notranslate text-nowrap">&lt;b-nav-item-dropdown&gt;</code><a class="anchorjs-link" href="#b-nav-item-dropdown" aria-labelledby="b-nav-item-dropdown"></a></span></h3>
<p>
  有关<code translate="no" class="notranslate text-nowrap">&lt;b-nav-item-dropdown&gt;</code>用法，
  请参阅<a href="../../../bootstrap-vue/docs/components/dropdown" class="font-weight-bold"><code translate="no" class="notranslate text-nowrap">&lt;b-dropdown&gt;</code></a>文档。
  注意<code translate="no" class="notranslate text-nowrap">&lt;b-navbar&gt;</code>和
  <code translate="no" class="notranslate text-nowrap">&lt;b-navbar-nav&gt;</code>中不支持拆分下拉菜单。
</p>
<div translate="translate" class="bd-example vue-example vue-example-b-navbar-dropdown notranslate">
<div>
<nav class="navbar navbar-dark bg-dark navbar-expand">
<ul class="navbar-nav">
<li class="nav-item"><a target="_self" href="#" class="nav-link">Home</a></li>
<li class="nav-item b-nav-dropdown dropdown" id="__BVID__822"><a aria-haspopup="true" aria-expanded="false" target="_self" href="#" class="nav-link dropdown-toggle" id="__BVID__822__BV_button_"><span>Lang</span></a>
<ul tabindex="-1" class="dropdown-menu dropdown-menu-right" aria-labelledby="__BVID__822__BV_button_">
<li role="presentation"><a role="menuitem" target="_self" href="#" class="dropdown-item">EN</a></li>
<li role="presentation"><a role="menuitem" target="_self" href="#" class="dropdown-item">ES</a></li>
<li role="presentation"><a role="menuitem" target="_self" href="#" class="dropdown-item">RU</a></li>
<li role="presentation"><a role="menuitem" target="_self" href="#" class="dropdown-item">FA</a></li>
</ul>
</li>
<li class="nav-item b-nav-dropdown dropdown" id="__BVID__832"><a aria-haspopup="true" aria-expanded="false" target="_self" href="#" class="nav-link dropdown-toggle" id="__BVID__832__BV_button_"><span>User</span></a>
<ul tabindex="-1" class="dropdown-menu dropdown-menu-right" aria-labelledby="__BVID__832__BV_button_">
<li role="presentation"><a role="menuitem" target="_self" href="#" class="dropdown-item">Account</a></li>
<li role="presentation"><a role="menuitem" target="_self" href="#" class="dropdown-item">Settings</a></li>
</ul>
</li>
</ul>
</nav>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"dark"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"dark"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar-nav</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-nav-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>Home<span class="hljs-tag">&lt;/<span class="hljs-name">b-nav-item</span>&gt;</span>

      <span class="hljs-comment">&lt;!-- Navbar dropdowns --&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-nav-item-dropdown</span> <span class="hljs-attr">text</span>=<span class="hljs-string">"Lang"</span> <span class="hljs-attr">right</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-dropdown-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>EN<span class="hljs-tag">&lt;/<span class="hljs-name">b-dropdown-item</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-dropdown-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>ES<span class="hljs-tag">&lt;/<span class="hljs-name">b-dropdown-item</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-dropdown-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>RU<span class="hljs-tag">&lt;/<span class="hljs-name">b-dropdown-item</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-dropdown-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>FA<span class="hljs-tag">&lt;/<span class="hljs-name">b-dropdown-item</span>&gt;</span>
      <span class="hljs-tag">&lt;/<span class="hljs-name">b-nav-item-dropdown</span>&gt;</span>

      <span class="hljs-tag">&lt;<span class="hljs-name">b-nav-item-dropdown</span> <span class="hljs-attr">text</span>=<span class="hljs-string">"User"</span> <span class="hljs-attr">right</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-dropdown-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>Account<span class="hljs-tag">&lt;/<span class="hljs-name">b-dropdown-item</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-dropdown-item</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"#"</span>&gt;</span>Settings<span class="hljs-tag">&lt;/<span class="hljs-name">b-dropdown-item</span>&gt;</span>
      <span class="hljs-tag">&lt;/<span class="hljs-name">b-nav-item-dropdown</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar-nav</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></pre></figure>
<h3 id="b-nav-form" class="bv-no-focus-ring"><span class="bd-content-title"><code translate="no" class="notranslate text-nowrap">&lt;b-nav-form&gt;</code><a class="anchorjs-link" href="#b-nav-form" aria-labelledby="b-nav-form"></a></span></h3>
<p>
  使用<code translate="no" class="notranslate text-nowrap">&lt;b-nav-form&gt;</code>将内联表单控件放入导航栏
</p>
<div translate="translate" class="bd-example vue-example vue-example-b-navbar-form notranslate">
<div>
<nav class="navbar navbar-light bg-light navbar-expand">
<li class="form-inline">
<form class="form-inline">
<input type="text" placeholder="Search" class="mr-sm-2 form-control" id="__BVID__840">
<button type="submit" class="btn my-2 my-sm-0 btn-outline-success">Search</button>
</form>
</li>
</nav>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"light"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"light"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-nav-form</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-form-input</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mr-sm-2"</span> <span class="hljs-attr">placeholder</span>=<span class="hljs-string">"Search"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-input</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-button</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"outline-success"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"my-2 my-sm-0"</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"submit"</span>&gt;</span>Search<span class="hljs-tag">&lt;/<span class="hljs-name">b-button</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-nav-form</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></pre></figure>
<p>输入组也可以工作：</p>
<div translate="translate" class="bd-example vue-example vue-example-b-navbar-form-inputs notranslate">
<div>
<nav class="navbar navbar-light bg-light navbar-expand">
<li class="form-inline">
<form class="form-inline">
<div role="group" class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">@</div>
</div>
<input type="text" placeholder="Username" class="form-control" id="__BVID__843">
</div>
</form>
</li>
</nav>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">b-navbar</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"light"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"light"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-nav-form</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-input-group</span> <span class="hljs-attr">prepend</span>=<span class="hljs-string">"@"</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-form-input</span> <span class="hljs-attr">placeholder</span>=<span class="hljs-string">"Username"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-form-input</span>&gt;</span>
      <span class="hljs-tag">&lt;/<span class="hljs-name">b-input-group</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-nav-form</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">b-navbar</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></pre></figure>
<h3 id="b-navbar-toggle-and-b-collapse-is-nav" class="bv-no-focus-ring"><span class="bd-content-title"><code translate="no" class="notranslate text-nowrap">&lt;b-navbar-toggle&gt;</code> and <code translate="no" class="notranslate text-nowrap">&lt;b-collapse is-nav&gt;</code><a class="anchorjs-link" href="#b-navbar-toggle-and-b-collapse-is-nav" aria-labelledby="b-navbar-toggle-and-b-collapse-is-nav"></a></span></h3>
<p>
  导航栏在默认情况下没有响应，但是您可以很容易地修改它们来更改它。反应行为取决于我们的<code translate="no" class="notranslate text-nowrap">&lt;b-collapse&gt;</code>成分。
</p>
<p>
  在<code translate="no" class="notranslate text-nowrap">&lt;b-collapse is-nav&gt;</code>中包装
  <code translate="no" class="notranslate text-nowrap">&lt;b-navbar-nav&gt;</code>组件（<strong>记住要设置<code translate="no" class="notranslate text-nowrap">is-nav</code>属性!</strong>）
  指定将基于特定断点折叠的内容。在<code translate="no" class="notranslate text-nowrap">&lt;b-collapse&gt;</code>上指定文档唯一<code translate="no" class="notranslate text-nowrap">id</code>值。
</p>
<p>
  使用<code translate="no" class="notranslate text-nowrap">&lt;b-navbar-toggle&gt;</code>组件控制折叠组件，
  并将<code translate="no" class="notranslate text-nowrap">&lt;b-navbar-toggle&gt;</code>的
  <code translate="no" class="notranslate text-nowrap">目标</code>属性设置为<code translate="no" class="notranslate text-nowrap">&lt;b-collapse&gt;</code>的<code translate="no" class="notranslate text-nowrap">id</code>。
</p>
<p>
  将<code translate="no" class="notranslate text-nowrap">&lt;b-navbar&gt;</code>上的<code translate="no" class="notranslate text-nowrap">toggleable</code>属性
  设置为希望内容自动展开的所需断点。可能的可切换值是<code translate="no" class="notranslate text-nowrap">sm</code>, 
  <code translate="no" class="notranslate text-nowrap">md</code>, 
  <code translate="no" class="notranslate text-nowrap">lg</code>和
  <code translate="no" class="notranslate text-nowrap">xl</code>。将<code translate="no" class="notranslate text-nowrap">toggleable</code>
  设置为<code translate="no" class="notranslate text-nowrap">true</code>（或空字符串）将设置导航条始终折叠，而将其设置为<code translate="no" class="notranslate text-nowrap">false</code>（默认设置）将禁用折叠（始终展开）。
</p>
<p>
  默认情况下，<code translate="no" class="notranslate text-nowrap">&lt;b-navbar-toggle&gt;</code>组件是左对齐的，
  但如果它们遵循类似于<code translate="no" class="notranslate text-nowrap">&lt;b-navbar-brand&gt;</code>的同级元素，则它们将自动与最右侧对齐。反转标记将反转切换器的位置。
</p>
<p>
  请参阅本页的第一个示例以供参考，有关折叠组件的详细信息，请参阅<a href="../../../bootstrap-vue/docs/components/collapse" class="font-weight-bold"><code translate="no" class="notranslate text-nowrap">&lt;b-collapse&gt;</code></a>。
</p>
<h2 id="printing" class="bv-no-focus-ring"><span class="bd-content-title">打印<a class="anchorjs-link" href="#printing" aria-labelledby="printing"></a></span></h2>
<p>
  默认情况下，打印时导航栏是隐藏的。通过设置<code translate="no" class="notranslate text-nowrap">print</code>属性强制打印。
</p>
<h2 id="see-also" class="bv-no-focus-ring"><span class="bd-content-title">另请参阅<a class="anchorjs-link" href="#see-also" aria-labelledby="see-also"></a></span></h2>
<p>
  请参阅<a href="../../../bootstrap-vue/docs/reference/router-links" class="font-weight-bold">路由器支持</a>参考页以获取路由器链接特定的属性。
</p>
<p>
  有关其他组件和子组件别名，请参见<a href="../../../bootstrap-vue/docs/components/nav" class="font-weight-bold"><code translate="no" class="notranslate text-nowrap">&lt;b-nav&gt;</code></a>。
</p>
<!-- Component reference added automatically from component package.json -->

<h2 id="component-reference" tabindex="-1" class="bv-no-focus-ring"><span class="bd-content-title">组件引用<a href="../../../bootstrap-vue/docs/components/navbar#component-reference" class="anchorjs-link" aria-labelledby="component-reference" target="_self"></a></span></h2>
<section data-v-866a22e8="" class="bd-content">
<header data-v-866a22e8="" class="row align-items-center">
<div data-v-866a22e8="" class="col-sm-9">
<h3 data-v-866a22e8="" id="comp-ref-b-navbar" tabindex="-1" class="bv-no-focus-ring"><span data-v-866a22e8="" class="bd-content-title"><code data-v-866a22e8="" translate="translate" class="notranslate bigger">&lt;b-navbar&gt;</code><a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/navbar#comp-ref-b-navbar" class="anchorjs-link" aria-labelledby="comp-ref-b-navbar" target="_self"></a></span></h3>
</div>
<div data-v-866a22e8="" class="text-sm-right col-sm-3"><a data-v-866a22e8="" rel="noopener" target="_blank" href="https://github.com/bootstrap-vue/bootstrap-vue/tree/dev/src/components/navbar/navbar.js" class="btn btn-outline-secondary btn-sm"> View source </a></div>
</header>
<ul data-v-866a22e8="" class="component-ref-mini-toc my-3">
<li data-v-866a22e8=""><a data-v-866a22e8="" href="#comp-ref-b-navbar-props"><code data-v-866a22e8="" translate="translate" class="notranslate">&lt;b-navbar&gt;</code> 属性 </a></li>
</ul>
<article data-v-866a22e8="" class="bd-content">
<h4 data-v-866a22e8="" id="comp-ref-b-navbar-props" tabindex="-1" class="bv-no-focus-ring mb-3"><span data-v-866a22e8="" class="bd-content-title"> 属性 <a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/navbar#comp-ref-b-navbar-props" class="anchorjs-link" aria-labelledby="comp-ref-b-navbar-props" target="_self"></a></span></h4>
<div data-v-866a22e8="" class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="4" class="table b-table bv-docs-table table-striped" id="__BVID__660">
<thead role="rowgroup" class="">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">属性</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">类型</th>
<th role="columnheader" scope="col" aria-colindex="3" class="">默认值</th>
<th role="columnheader" scope="col" aria-colindex="4" class="">描述</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" data-pk="tag" class="" id="__BVID__660__row_tag">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">tag</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">'nav'</code></td>
<td aria-colindex="4" role="cell" class="">指定要呈现的HTML标记，而不是默认标记</td>
</tr>
<tr role="row" data-pk="type" class="" id="__BVID__660__row_type">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">type</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">'light'</code></td>
<td aria-colindex="4" role="cell" class="">控制文本颜色，方法是将“浅色”设置为与浅色背景颜色变体一起使用，或将“深色”设置为与深色背景颜色变体一起使用</td>
</tr>
<tr role="row" data-pk="variant" class="" id="__BVID__660__row_variant">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">variant</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">将一个引导主题颜色变体应用于组件</td>
</tr>
<tr role="row" data-pk="toggleable" class="" id="__BVID__660__row_toggleable">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">toggleable</code></td>
<td aria-colindex="2" role="cell" class="">Boolean or String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">
  对于始终折叠的导航栏，设置为“true”，或者设置为特定断点，此时导航栏将展开：“sm”、“md”、“lg”或“xl”</td>
</tr>
<tr role="row" data-pk="fixed" class="" id="__BVID__660__row_fixed">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">fixed</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">设置为“顶”表示固定在视口顶部，或设置为“底”表示固定在视口底部</td>
</tr>
<tr role="row" data-pk="sticky" class="" id="__BVID__660__row_sticky">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">sticky</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">
  设置为true可使导航条在滚动时粘在视口的顶部（或设置了“position:relative”的父容器）</td>
</tr>
<tr role="row" data-pk="print" class="" id="__BVID__660__row_print">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">print</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">默认情况下，打印时导航栏是隐藏的。当这个道具设置好后，它将被打印出来</td>
</tr>
</tbody>
</table>
</div>
</article>
</section>
<section data-v-866a22e8="" class="bd-content">
<header data-v-866a22e8="" class="row align-items-center">
<div data-v-866a22e8="" class="col-sm-9">
<h3 data-v-866a22e8="" id="comp-ref-b-navbar-nav" tabindex="-1" class="bv-no-focus-ring"><span data-v-866a22e8="" class="bd-content-title"><code data-v-866a22e8="" translate="translate" class="notranslate bigger">&lt;b-navbar-nav&gt;</code><a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/navbar#comp-ref-b-navbar-nav" class="anchorjs-link" aria-labelledby="comp-ref-b-navbar-nav" target="_self"></a></span></h3>
<a data-v-866a22e8="" rel="noopener" target="_blank" href="https://vuejs.org/v2/guide/render-function.html#Functional-Components" class="badge badge-secondary"> Functional Component </a></div>
<div data-v-866a22e8="" class="text-sm-right col-sm-3"><a data-v-866a22e8="" rel="noopener" target="_blank" href="https://github.com/bootstrap-vue/bootstrap-vue/tree/dev/src/components/navbar/navbar-nav.js" class="btn btn-outline-secondary btn-sm"> View source </a></div>
</header>
<ul data-v-866a22e8="" class="component-ref-mini-toc my-3">
<li data-v-866a22e8=""><a data-v-866a22e8="" href="#comp-ref-b-navbar-nav-props"><code data-v-866a22e8="" translate="translate" class="notranslate">&lt;b-navbar-nav&gt;</code> 属性 </a></li>
</ul>
<article data-v-866a22e8="" class="bd-content">
<h4 data-v-866a22e8="" id="comp-ref-b-navbar-nav-props" tabindex="-1" class="bv-no-focus-ring mb-3"><span data-v-866a22e8="" class="bd-content-title"> 属性 <a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/navbar#comp-ref-b-navbar-nav-props" class="anchorjs-link" aria-labelledby="comp-ref-b-navbar-nav-props" target="_self"></a></span></h4>
<div data-v-866a22e8="" class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="4" class="table b-table bv-docs-table table-striped" id="__BVID__682">
<thead role="rowgroup" class="">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">属性</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">类型</th>
<th role="columnheader" scope="col" aria-colindex="3" class="">默认值</th>
<th role="columnheader" scope="col" aria-colindex="4" class="">描述</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" data-pk="tag" class="" id="__BVID__682__row_tag">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">tag</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">'ul'</code></td>
<td aria-colindex="4" role="cell" class="">指定要呈现的HTML标记，而不是默认标记</td>
</tr>
<tr role="row" data-pk="fill" class="" id="__BVID__682__row_fill">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">fill</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">按比例用导航项填充所有水平空间。所有水平空间都被占用，但不是每个导航项都有相同的宽度</td>
</tr>
<tr role="row" data-pk="justified" class="" id="__BVID__682__row_justified">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">justified</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">用导航项填充所有水平空间，但与“填充”不同，每个导航项的宽度都相同</td>
</tr>
<tr role="row" data-pk="align" class="" id="__BVID__682__row_align">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">align</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">对齐导航中的导航项：“开始”（或“左”）、“中心”、“结束”（或“右”）</td>
</tr>
<tr role="row" data-pk="small" class="" id="__BVID__682__row_small">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">small</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">使导航更小</td>
</tr>
</tbody>
</table>
</div>
</article>
</section>
<section data-v-866a22e8="" class="bd-content">
<header data-v-866a22e8="" class="row align-items-center">
<div data-v-866a22e8="" class="col-sm-9">
<h3 data-v-866a22e8="" id="comp-ref-b-navbar-brand" tabindex="-1" class="bv-no-focus-ring"><span data-v-866a22e8="" class="bd-content-title"><code data-v-866a22e8="" translate="translate" class="notranslate bigger">&lt;b-navbar-brand&gt;</code><a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/navbar#comp-ref-b-navbar-brand" class="anchorjs-link" aria-labelledby="comp-ref-b-navbar-brand" target="_self"></a></span></h3>
<a data-v-866a22e8="" rel="noopener" target="_blank" href="https://vuejs.org/v2/guide/render-function.html#Functional-Components" class="badge badge-secondary"> Functional Component </a></div>
<div data-v-866a22e8="" class="text-sm-right col-sm-3"><a data-v-866a22e8="" rel="noopener" target="_blank" href="https://github.com/bootstrap-vue/bootstrap-vue/tree/dev/src/components/navbar/navbar-brand.js" class="btn btn-outline-secondary btn-sm"> View source </a></div>
</header>
<ul data-v-866a22e8="" class="component-ref-mini-toc my-3">
<li data-v-866a22e8=""><a data-v-866a22e8="" href="#comp-ref-b-navbar-brand-props"><code data-v-866a22e8="" translate="translate" class="notranslate">&lt;b-navbar-brand&gt;</code> 属性 </a></li>
</ul>
<article data-v-866a22e8="" class="bd-content">
<h4 data-v-866a22e8="" id="comp-ref-b-navbar-brand-props" tabindex="-1" class="bv-no-focus-ring mb-3"><span data-v-866a22e8="" class="bd-content-title"> 属性 <a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/navbar#comp-ref-b-navbar-brand-props" class="anchorjs-link" aria-labelledby="comp-ref-b-navbar-brand-props" target="_self"></a></span></h4>
<div data-v-866a22e8="" class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="4" class="table b-table bv-docs-table table-striped" id="__BVID__702">
<thead role="rowgroup" class="">
<tr role="row" class="">
<th role="columnheader" scope="col" tabindex="0" aria-colindex="1" aria-sort="none" class="b-table-sort-icon-left">属性<span class="sr-only"> (单击可升序排序)</span></th>
<th role="columnheader" scope="col" tabindex="0" aria-colindex="2" class="">类型</th>
<th role="columnheader" scope="col" tabindex="0" aria-colindex="3" class="">默认值</th>
<th role="columnheader" scope="col" tabindex="0" aria-colindex="4" class="">描述</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" data-pk="href" class="" id="__BVID__702__row_href">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">href</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">表示标准a链接的链接的目标URL</td>
</tr>
<tr role="row" data-pk="rel" class="" id="__BVID__702__row_rel">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">rel</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">设置呈现链接的“rel”属性</td>
</tr>
<tr role="row" data-pk="target" class="" id="__BVID__702__row_target">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">target</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">'_self'</code></td>
<td aria-colindex="4" role="cell" class="">设置呈现链接的“target”属性</td>
</tr>
<tr role="row" data-pk="active" class="" id="__BVID__702__row_active">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">active</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">当设置为“true”时，使用活动样式将组件置于活动状态</td>
</tr>
<tr role="row" data-pk="disabled" class="" id="__BVID__702__row_disabled">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">disabled</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">当设置为“true”时，将禁用组件的功能并将其置于禁用状态</td>
</tr>
<tr role="row" data-pk="to" class="" id="__BVID__702__row_to">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">to</code></td>
<td aria-colindex="2" role="cell" class="">String or Object</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">
  路由器链接属性：表示链接的目标路由。单击时，to prop的值将在内部传递给router.push（），因此该值可以是字符串或位置描述符对象</td>
</tr>
<tr role="row" data-pk="append" class="" id="__BVID__702__row_append">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">append</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">路由器链接属性：设置附加属性总是将相对路径附加到当前路径</td>
</tr>
<tr role="row" data-pk="replace" class="" id="__BVID__702__row_replace">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">replace</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">
  路由器链接属性：设置替换属性将在单击时调用“router.replace（）”，而不是“router.push（）”，因此导航不会留下历史记录</td>
</tr>
<tr role="row" data-pk="event" class="" id="__BVID__702__row_event">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">event</code></td>
<td aria-colindex="2" role="cell" class="">String or Array</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">'click'</code></td>
<td aria-colindex="4" role="cell" class="">路由器链接属性：指定触发链接的事件。在大多数情况下，您应该将其保留为默认值</td>
</tr>
<tr role="row" data-pk="active-class" class="" id="__BVID__702__row_active-class">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">active-class</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">
  路由器链接属性：配置当链接处于活动状态时应用的活动CSS类。通常您需要将其设置为类名“active”</td>
</tr>
<tr role="row" data-pk="exact" class="" id="__BVID__702__row_exact">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">exact</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">
  路由器链接属性：默认的活动类匹配行为是包含匹配。设置此道具将强制模式与路线完全匹配</td>
</tr>
<tr role="row" data-pk="exact-active-class" class="" id="__BVID__702__row_exact-active-class">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">exact-active-class</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">
  路由器链接属性：配置当链接处于活动状态时应用的活动CSS类，精确匹配。通常您需要将其设置为类名“active”</td>
</tr>
<tr role="row" data-pk="router-tag" class="" id="__BVID__702__row_router-tag">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">router-tag</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">'a'</code></td>
<td aria-colindex="4" role="cell" class="">
  路由器链接属性：指定要呈现的标记，它仍将侦听用于导航的单击事件“路由器标记”转换为最终呈现路由器链接上的标记属性。通常应该使用默认值</td>
</tr>
<tr role="row" data-pk="no-prefetch" class="" id="__BVID__702__row_no-prefetch">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">no-prefetch</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">
  nuxt link prop：为了提高nuxt.js应用程序的响应性，当链接显示在视区内时，nuxt.js将自动预取代码分割的页面。设置“无预取”将禁用特定链接的此功能</td>
</tr>
<tr role="row" data-pk="tag" class="" id="__BVID__702__row_tag">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">tag</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">'div'</code></td>
<td aria-colindex="4" role="cell" class="">指定要呈现的HTML标记，而不是默认标记</td>
</tr>
</tbody>
</table>
</div>
<div data-v-866a22e8="" class="alert alert-info">
<p data-v-866a22e8="" class="mb-0 small">
  <code data-v-866a22e8="" translate="translate" class="notranslate">&lt;b-navbar-brand&gt;</code>支持生成
  <code data-v-866a22e8="" translate="translate" class="notranslate">&lt;router-link&gt;</code>或 
  <code data-v-866a22e8="" translate="translate" class="notranslate">&lt;nuxt-link&gt;</code>组件（如果使用nuxt.js）。
  有关路由器链接（或nuxt链接）特定属性的更多详细信息，请参阅<a data-v-866a22e8="" href="../../../bootstrap-vue/docs/reference/router-links" class="alert-link" target="_self">路由器支持</a>参考部分。
</p>
</div>
</article>
</section>
<section data-v-866a22e8="" class="bd-content">
<header data-v-866a22e8="" class="row align-items-center">
<div data-v-866a22e8="" class="col-sm-9">
<h3 data-v-866a22e8="" id="comp-ref-b-navbar-toggle" tabindex="-1" class="bv-no-focus-ring"><span data-v-866a22e8="" class="bd-content-title"><code data-v-866a22e8="" translate="translate" class="notranslate bigger">&lt;b-navbar-toggle&gt;</code><a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/navbar#comp-ref-b-navbar-toggle" class="anchorjs-link" aria-labelledby="comp-ref-b-navbar-toggle" target="_self"></a></span></h3>
</div>
<div data-v-866a22e8="" class="text-sm-right col-sm-3"><a data-v-866a22e8="" rel="noopener" target="_blank" href="https://github.com/bootstrap-vue/bootstrap-vue/tree/dev/src/components/navbar/navbar-toggle.js" class="btn btn-outline-secondary btn-sm"> View source </a></div>
</header>
<ul data-v-866a22e8="" class="component-ref-mini-toc my-3">
<li data-v-866a22e8=""><a data-v-866a22e8="" href="#comp-ref-b-navbar-toggle-aliases"><code data-v-866a22e8="" translate="translate" class="notranslate">&lt;b-navbar-toggle&gt;</code> 组件别名 </a></li>
<li data-v-866a22e8=""><a data-v-866a22e8="" href="#comp-ref-b-navbar-toggle-props"><code data-v-866a22e8="" translate="translate" class="notranslate">&lt;b-navbar-toggle&gt;</code> 属性 </a></li>
<li data-v-866a22e8=""><a data-v-866a22e8="" href="#comp-ref-b-navbar-toggle-events"><code data-v-866a22e8="" translate="translate" class="notranslate">&lt;b-navbar-toggle&gt;</code> 事件 </a></li>
</ul>
<article data-v-866a22e8="" class="bd-content">
<h4 data-v-866a22e8="" id="comp-ref-b-navbar-toggle-aliases" tabindex="-1" class="bv-no-focus-ring mb-3"><span data-v-866a22e8="" class="bd-content-title"> 组件别名 <a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/navbar#comp-ref-b-navbar-toggle-aliases" class="anchorjs-link" aria-labelledby="comp-ref-b-navbar-toggle-aliases" target="_self"></a></span></h4>
<p data-v-866a22e8=""><code data-v-866a22e8="" translate="translate" class="notranslate">&lt;b-navbar-toggle&gt;</code> 也可以通过以下别名使用：</p>
<ul data-v-866a22e8="">
<li data-v-866a22e8=""><code data-v-866a22e8="" translate="translate" class="notranslate">&lt;b-nav-toggle&gt;</code></li>
</ul>
<div data-v-866a22e8="" class="alert alert-info">
<p data-v-866a22e8="" class="mb-0 small"> 注意: 组件别名仅在导入所有BootstrapVue或使用组件组插件时可用。</p>
</div>
</article>
<article data-v-866a22e8="" class="bd-content">
<h4 data-v-866a22e8="" id="comp-ref-b-navbar-toggle-props" tabindex="-1" class="bv-no-focus-ring mb-3"><span data-v-866a22e8="" class="bd-content-title"> 属性 <a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/navbar#comp-ref-b-navbar-toggle-props" class="anchorjs-link" aria-labelledby="comp-ref-b-navbar-toggle-props" target="_self"></a></span></h4>
<div data-v-866a22e8="" class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="4" class="table b-table bv-docs-table table-striped" id="__BVID__735">
<thead role="rowgroup" class="">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">属性</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">类型</th>
<th role="columnheader" scope="col" aria-colindex="3" class="">默认值</th>
<th role="columnheader" scope="col" aria-colindex="4" class="">描述</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" data-pk="label" class="" id="__BVID__735__row_label">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">label</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">'Toggle navigation'</code></td>
<td aria-colindex="4" role="cell" class="">要放置在切换的“aria label”属性中的字符串</td>
</tr>
<tr role="row" data-pk="target" class="" id="__BVID__735__row_target">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">target</code> <span data-v-866a22e8="" class="badge badge-info">Required</span></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">折叠控件的折叠ID</td>
</tr>
</tbody>
</table>
</div>
</article>
<article data-v-866a22e8="" class="bd-content">
<h4 data-v-866a22e8="" id="comp-ref-b-navbar-toggle-events" tabindex="-1" class="bv-no-focus-ring mb-3"><span data-v-866a22e8="" class="bd-content-title"> 事件 <a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/navbar#comp-ref-b-navbar-toggle-events" class="anchorjs-link" aria-labelledby="comp-ref-b-navbar-toggle-events" target="_self"></a></span></h4>
<div data-v-866a22e8="" class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="3" class="table b-table bv-docs-table table-striped" id="__BVID__747">
<thead role="rowgroup" class="">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">事件</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">参数</th>
<th role="columnheader" scope="col" aria-colindex="3" class="">描述</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" data-pk="click" class="" id="__BVID__747__row_click">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="notranslate">click</code></td>
<td aria-colindex="2" role="cell" class=""><ol data-v-866a22e8="" class="list-unstyled mb-0">
<li data-v-866a22e8=""> <span data-v-866a22e8="">Native click event object</span></li>
</ol></td>
<td aria-colindex="3" role="cell" class="">单击切换时发出。</td>
</tr>
</tbody>
</table>
</div>
</article>
<h3 id="importing-individual-components" tabindex="-1" class="bv-no-focus-ring"><span class="bd-content-title">导入单个组件<a href="../../../bootstrap-vue/docs/components/navbar#importing-individual-components" class="anchorjs-link" aria-labelledby="importing-individual-components" target="_self"></a></span></h3>
<p>可以通过以下命名导出将各个组件导入到项目中：</p>
<div class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="3" class="table b-table bv-docs-table table-striped" id="__BVID__758">
<thead role="rowgroup" class="thead-default">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">组成部分</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">命名导出</th>
<th role="columnheader" scope="col" aria-colindex="3" class="">导入路径</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" class="">
<td aria-colindex="1" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">&lt;b-navbar&gt;</code></td>
<td aria-colindex="2" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">BNavbar</code></td>
<td aria-colindex="3" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">bootstrap-vue</code></td>
</tr>
<tr role="row" class="">
<td aria-colindex="1" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">&lt;b-navbar-nav&gt;</code></td>
<td aria-colindex="2" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">BNavbarNav</code></td>
<td aria-colindex="3" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">bootstrap-vue</code></td>
</tr>
<tr role="row" class="">
<td aria-colindex="1" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">&lt;b-navbar-brand&gt;</code></td>
<td aria-colindex="2" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">BNavbarBrand</code></td>
<td aria-colindex="3" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">bootstrap-vue</code></td>
</tr>
<tr role="row" class="">
<td aria-colindex="1" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">&lt;b-navbar-toggle&gt;</code></td>
<td aria-colindex="2" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">BNavbarToggle</code></td>
<td aria-colindex="3" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">bootstrap-vue</code></td>
</tr>
</tbody>
</table>
</div>
<p><strong>例子:</strong></p>
<figure class="highlight"><pre translate="translate" class="hljs language-js text-monospace p-2 notranslate javascript"><span class="hljs-keyword">import</span> { BNavbar } <span class="hljs-keyword">from</span> <span class="hljs-string">'bootstrap-vue'</span>
Vue.component(<span class="hljs-string">'b-navbar'</span>, BNavbar)</pre></figure>
</article>
<article class="bd-content">
<h3 id="importing-as-a-plugin" tabindex="-1" class="bv-no-focus-ring"><span class="bd-content-title">作为Vue.js插件导入<a href="../../../bootstrap-vue/docs/components/navbar#importing-as-a-plugin" class="anchorjs-link" aria-labelledby="importing-as-a-plugin" target="_self"></a></span></h3>
<p>这个插件包括上面列出的所有独立组件。插件还包括任何组件别名。</p>
<div class="table-responsive-sm">
<table fileds="namedExport,importPath" role="table" aria-busy="false" aria-colcount="2" class="table b-table bv-docs-table table-striped b-table-caption-top" id="__BVID__771">
<thead role="rowgroup" class="thead-default">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">Named Export</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">Import Path</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" class="">
<td aria-colindex="1" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">NavbarPlugin</code></td>
<td aria-colindex="2" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">bootstrap-vue</code></td>
</tr>
</tbody>
</table>
</div>
<p>此插件还自动包含以下插件：</p>
<ul>
<li><code translate="translate" class="notranslate">NavPlugin</code></li>
<li><code translate="translate" class="notranslate">DropdownPlugin</code></li>
<li><code translate="translate" class="notranslate">CollapsePlugin</code></li>
</ul>
<p><strong>例子:</strong></p>
<figure class="highlight"><pre translate="translate" class="hljs language-js text-monospace p-2 notranslate javascript"><span class="hljs-keyword">import</span> { NavbarPlugin } <span class="hljs-keyword">from</span> <span class="hljs-string">'bootstrap-vue'</span>
Vue.use(NavbarPlugin)</pre></figure>










</main>
</div>
</div>


<script src="../../../v4/assets/js/vendor/jquery-slim.min.js"></script>
<script src="../../../v4/dist/js/popper.min.js"></script> 
<script src="../../../v4/dist/js/bootstrap.min.js"></script> 
<script src="../../../v4/assets/js/docs.min.js"></script> 
<script src="../../../v4/assets/js/ie-emulation-modes-warning.js"></script> 
<script src="../../../v4/assets/js/docsearch.min.js"></script> 
<script>
  docsearch({
    appId: 'PRR89ISST8',
    apiKey: '95044d57d4d7bb744f322d1f18ed607f',
    indexName: 'z01-bootstrapV4',
    inputSelector: '#search-input',
    handleSelected: function (input, event, suggestion) {
      var url = suggestion.url;
      url = suggestion.isLvl1 ? url.split('#')[0]: url;
      // If it's a title we remove the anchor so it does not jump.
      window.location.href = url;
    },
    transformData: function (hits) {
      return hits.map(function (hit) {
        hit.url = hit.url.replace('https://v4-alpha.getbootstrap.com', '/docs/4.0');
        return hit;
      });
    },
    debug: false // Set debug to true if you want to inspect the dropdown
  });
</script> 
<script>
  Holder.addTheme('gray', {
    bg: '#777',
    fg: 'rgba(255,255,255,.75)',
    font: 'Helvetica',
    fontweight: 'normal'
  });
</script>
</body>
</html>
